-- GENERATED SPELL FOR [Homunculus] --


function spell0_16539(pUnit, Event) --@Firebolt,n/a--
pUnit:FullCastSpellOnTarget(30180,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16539', 1500, 1)
end

function Sorts_16539(pUnit, Event)
local choix_sorts_16539 = math.random(0, 0)
if choix_sorts_16539 == 0 then
pUnit:RegisterEvent('spell0_16539', 1, 1)
end
end

function mob16539_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16539', math.random(1500, 3000), 1)
end

function mob16539_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16539_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16539_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16539, 1, 'mob16539_Action')
RegisterUnitEvent(16539, 2, 'mob16539_Leave')
RegisterUnitEvent(16539, 3, 'mob16539_Kill')
RegisterUnitEvent(16539, 4, 'mob16539_Die')
